#!/usr/bin/env python
# coding=utf-8
#__author__ = 'Yunchao Ling'

import sys
import os

ll=[]

root=sys.argv[1]
root=os.path.abspath(root)

list=os.listdir(root)

for item in list:
    if not (os.path.islink(item) or os.path.isfile(item)):
        dir1=os.path.join(root,item)
        dir1=os.path.join(dir1,"gvf")
        list2=os.listdir(dir1)
        for item2 in list2:
            dir2=os.path.join(dir1,item2)
            if item2.endswith("gvf") and os.path.isfile(dir2):
                print dir2
#                 ll.append(os.path.abspath(item2))
#
# for item in ll:
#     print item





